# $Id: PKGBUILD 86142 2013-03-12 08:46:08Z cinelli $
# Maintainer:  Federico Cinelli <cinelli@aur.archlinux.org>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Francois Boulogne <fboulogne at april dot org>

pkgname=python2-pdfrw
pkgver=0.1
pkgrel=2
pkgdesc='Basic PDF file manipulation library'
arch=('any')
url='https://code.google.com/p/pdfrw/'
license=('MIT')
depends=('python2')
source=("https://pdfrw.googlecode.com/files/pdfrw_$pkgver.zip")
sha256sums=('4dbb4017b179f1ecee947501d178a90e1ff0aaf6444ef24b5a630ee68e884919')

package() {
  cd "$srcdir/pdfrw_$pkgver"
  sed -i '0,/on/s//on2/' pdfrw/pdfwriter.py
  python2 setup.py install --root="$pkgdir"
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}

# vim:ts=2:sw=2:et:
